package cn.dao;

import java.sql.Connection;
import java.sql.SQLException;

import cn.pojo.Login;

/**
 * 登录接口
 * @author Administrator
 *
 */
public interface LoginDao {
	/**
	 * 根據用戶名和密碼來查詢用戶信息
	 * @param email
	 * @param password
	 * @param connection
	 * @return
	 * @throws SQLException 
	 */
	Login getUserByEmailAndPassword(Connection connection,String email,String password) throws SQLException;
}
